package Payment;

/**
 * CheckPayment extends of Payment class/ for customer choose to pay by check
 * @author Sara Pulis
 */
public class CheckPayment extends Payment {

    private float amount;

    public CheckPayment() {
        type = "Check";
    }
    
    public CheckPayment(float total) {
        type = "Check";
        transactionTotal = total;
    }

    @Override
    public String toString() {
        return "Paid by check";
    }

    @Override
    public float getTotal() {
        return transactionTotal;
    }

    @Override
    public boolean verify() {
        return true;
    }

    @Override
    public float getChange() {
        return 0;
    }

}
